import { create } from 'zustand';
import { OrderStore } from './interface/order';

/**
 * @author        lx <1154354121@qq.com>
 * @date          2025-04-15 15:31:14
 * Copyright © YourCompanyName All rights reserved
 */
export const useOrderStore = create<OrderStore.OrderState>((set) => ({
  name: 'lx',
  id: 1,
  list: [],
  setName: (name: string) => set({ name }),
  setOrder: (list: OrderStore.OrderItem[]) => set({ list }),
}));
